/*
 * lineread.h
 * 
 * Author: Tomi Ollila <too@cs.hut.fi>
 * 
 * This module is FREEWARE. Standard "NO WARRANTY" disclaimer applies.
 *
 * Created: Fri Nov 29 03:23:03 1991 too
 * Last modified: Wed Jul  7 20:42:54 1993 too
 * 
 * $Id: lineread.h,v 1.2 1993/07/07 17:45:36 too Exp $
 *
 * HISTORY
 * $Log: lineread.h,v $
 * Revision 1.2  1993/07/07  17:45:36  too
 * Made lineread compile without using sys/cdefs.h (only w/ ANSI compilers)
 *
 * Revision 1.1  1993/06/16  16:41:04  too
 * Initial revision
 *
 *
 */

/* #include <sys/cdefs.h> */

#define RL_BUFSIZE 1024

OBJECT rl_private
/*  struct Library * rlp_SocketBase; */
    rlp_Startp:LONG,
    rlp_Bufpointer:LONG,
    rlp_Howlong:LONG,
    rlp_Buffersize:LONG,
    rlp_Line_completed:LONG,
    rlp_Selected:LONG,
    rlp_Saved:BYTE,
    rlp_Buffer[RL_BUFSIZE + 1]:BYTE

OBJECT LineRead
    rl_Line:PTR TO BYTE,
    rl_Lftype:LONG,
    rl_Fd:LONG,
    rl_Private:rl_private

#define RL_LFNOTREQ  0
#define RL_LFREQLF   1
#define RL_LFREQNUL  2


/*__BEGIN_DECLS
  
int     lineRead __P((struct LineRead * rl));
void    initLineRead __P((struct LineRead * rl, int fd,
                          int lftype, int buffersize));

__END_DECLS */

/*
int     lineRead (struct LineRead * rl);
void    initLineRead (struct LineRead * rl, int fd,
                          int lftype, int buffersize);
*/

